added plot1 and code for plot1