Inheritance example in Java