Title: Elements of Hamiltonian mechanics