add plot 3 code and plot