According to Sir Isaac Newton, gravity depends on two factors. What are they?