Polymorphism in Java Exercise I