ch 6: inheritance