Update hm2.cpp