Update hm1.cpp