
B. F. Skinner devised the "Skinner box", where rats learn that a specific behavior (pressing a bar)
produces a consequence (the reward of food, or drugs such as morphine
and cocaine); thus the consequence reinforces the behavior.
Removing an aversive stimulus such as electric shock can also serve as
negative reinforcement to shape behavior.