Indexing

Next we perform indexing.