Theory of Collective Behavior