HW7: Completed up through step 2.