Updated exercise4_25.cpp