first version of index.clj,
not tested yet