Starting to understand how to generalize hamiltonian mechanics.