Merge pull request #3 from orb/indexing

add simple indexing #1