Update Assign6.cpp