Add code to pass tests in index_spec.rb