Update main.cpp

Incorporates instructions