He was an english Physicist and Astronomer . He was President of the Royal Society .His famous discovery was the theory of gravity .