kind of loop added. Start playing with custom types in cljs