Ruby / R program to simulate gravitation.