Theory of the Earth