exercise 2 - adding an index