exercise for the book <i>Programming Clojure</i>