refactors, added animal prototype