code and png for plot1