Add exercise 2.18.