move main to Main.cpp