Create main.cpp

copied from finished v1.0 local code