Index class initial implementation; Untested