plot 2 code