modified plot 2 script and added plot3 script and plot