Java Inheritance code example part 2