Wrote exercise 16