Update exercise8.5.cpp