Update Assign9.cpp