two day10 exercises (Inheritance)