Update output2.cpp