Update exercise8.4.cpp