Orbital simulator in Scala