as they reached the baboon enclosure , it was feeding time and the four of them watched as the keepers threw apples on to the top of the cages and the inmates climbed up and grabbed the fruit through the bars , some of them racing to snatch their food before others could reach it .