solution: part a.