The rat moves around the cage, when it accidentally presses the lever, a food pellet (reinforcer/reward) falls into cage. Rat begins pressing lever to obtain food because it learned through positive reinforcement that a particular action results in a positive consequence. If the food pellet stops, the rat presses the lever a few more times and then abandons it (extinction).