Adding script and plot for q6 p4