There is a class called Box which can be defined as a container for storing different things. But as we all know, pets prefer using boxes for other things: playing, sleeping, hiding, etc.
Finish the Box class so that it could be applied only to objects of subclasses of Animal class. Inside this class implement anadd(...object...) method for adding the object of Animal class or its subclass to a Box object.