fixing classes to inherit from abstract animal