Code for HW Sets given in Phys 595.