John was working on a fixed ratio schedule. He was paid a certain amount for a certain number of cantaloupes, so he would eventually come to associate that number of cantaloupes with a positive stimulus, or rather, a reward. In this way, the farmer ensures productivity.