Update exercise3.cc