Add code for the three subclasses and Dog