added a class representing animal