Code for the Plot 1