adding part d of 2
adding sol2 for part d question 2