First version of Main.cpp