add plot 3 code