Update exercise3.14.cpp