Text this: Introducing the Hamiltonian as a 'thermodynamic' potential