Operant conditioning is a method of learning whereby behaviors are strengthened through positive reinforcement or weakened through punishment. B.F. Skinner experimented with rats in a box and found that they learned to press a lever to receive food (positive reinforcement) or avoid electric shocks (negative reinforcement). His work built upon Edward Thorndike's law of effect. Operant conditioning explains how behaviors are acquired and modified through reinforcement and punishment schedules in the environment. However, it has limitations as it does not account for cognition or genetics.