Created an animalqueue class