The Natural Selection of Populations and Communities