add virtual functions to classes: animal, block