Code and Plots