Update program4.cpp