Some extra credit for exercise 17.