fixed animal class problem