updated animal.py