Typo fixed
Implemented createIndex method