Code from the book "Clojure in Action" 2nd edition