finished inheritance exercises