Practice exercise using inheritance