Rules and the Emergence of Society