Code for Plot 3

Code for Plot 3