The environment shapes behavior through the mechanism of reinforcement.