The rat was fasted for a day before being placed in the box so it was very hungry. When the rat was near the lever, Skinner released a sugar pellet. When the rat accidentally touched the lever, Skinner released a sugar pellet. He continued doing so until the rat learned to press the lever and release the sugar pellets themselves