Index class added.
index rate method finished and tested.
index now method done and tested.