added plot2 code and chart