Dynamics of human behavior