Updated Plot 4 Code