Part B
Part A