Correct use of Gravity for potential energy