first version of plot1