Added code and plot for PLot4