update the example of HMC