Evolutionary theory of cooperation and group life