Chapter 12 applicative: exercise 14