part a
Part B