my first clojure solution!
more problems, now using clojure