added equalsAnimal function and compiled file