Updated plot3 and working version of plot4