exercise written in Clojure while going through the book