Evolution of societies