add .cpp to main file in createMain