adding plot1 code and result