solution: part c.