Plot 3 code