Work on exercise 3 (objects and inheritance)