Text this: Hamiltonian cosmology