Theory of gravity