Homework 29.4 inheritance