Completed Exercise 9
Extra credit 9