Completed question 9 except for diagrams and plot