Refactor index to use built-in methods.
Merge pull request #2 from tkrajcar/rubyup

Refactor index to use built-in methods.