2d solar system implemented using euler's method