aligned the main.cpp to the default module structure