Your job is to implement an ecological simulation of an ecosystem.
Lions eat zebras, and zebras eat plants.
Lions and zebras drink water from ponds. Each object maintains as state information its current position, its age, and a hunger factor. Carefully use inheritance to model the hierarchy of the kinds of objects in the system. The world should be an instance of a World class that maintains lists of instances of the various kinds of objects and periodically sends an update message to each object in a main loop. Each kind of object has its own update method and any necessary auxiliary methods.