index rate method finished and tested.