Update exercise1.cpp