fourth lesson: inheritance