Update Exercise6.cpp