solution script and plots.