Update Assignment2.cpp