added hw1 - indexer