Indexing support added by Index class, indexing test added