I was thinking of rats in a maze, running around and pulling levers to get pellets. In the human case I guess the pellet is dopamine or some other neurotransmitter that makes you feel good and is potentially the root cause of compulsive behavior that facebook and google are able to capitalize on.