Update Program2.cpp