sections 4, 5 HW4