updated scala, clojure examples