Update Exercise2.cpp