Adding gravity calculations

Gravity calculations are done via:
 * foo
 * bar