solution: part b.