12 part a

Added the code for question 12 part a
12 part b

added part b