removed curly braces in index method per Ruby 1.9.3 style