Added code for plot 3, created plot 3