assignment_3 question 2d) 2e)