Text this: Analytical mechanics of space systems