add Main.cc and compile.sh