The beauty of gravity and orbital mechanics (the classic, newtonian version) is that everything just boils down to a single equation, the law of universal gravitation. The gravitational force between any two objects is always
F = Gm₁m₂/d²
Just making it so everything attracts everything else using that equation is all there is to it. Realistic orbits and orbital mechanics just emerge naturally!