translated example 11 into clojure