update the HMC example