class animaldetails now using name from class animal
constructor now counts each time a new object is created