Quadratic cost
Plotting and saving