Finished #3-5a on HW4