added test case for the cat, the parrot, and the bag of seed problem.