main2.cpp

main.cpp with minor changes