moving main method into clojure