illustrates the use of an indexer 1