Create main.cpp

This is the main code.