Update phase1.cpp