The Theory of Ecology