Work Done by Gravity and Friction