added a solution to the zooPatrol problem