Added plot1 code