A Coordinate free representation of Hamiltonian equations