Finished #6 of HW4