A rat is being trained to learn its way through a complex maze. When the rat successfully makes its way through the maze, it receives water and food and runs faster next time. What psychological principle does this example illustrate?

A. stimulus
B. reinforcement
C. introspection
D. cognition