Added class to calculate gravitational force. Closes #87.