Added Code and plot 3 and plot 4