Homework to practice inheritance and overriding methods