new file main.cpp to make plots