Changed MyIndex class to Index class