Update project2.cpp