Lovelock theory of gravity