A simple gravitational simulation implementation in Ruby