improving the animal class