Update main.cpp

Copied and pasted 4/27 version