Wrote a gravity simulation program using the new set up.