Plot 4 code