Code for Gravity Values

Just beginning coding this. Still needs a lot of work.