Text this: Elements of Hamiltonian Mechanics