Update exercise3.23.cpp