Update revised_project4a.cpp