A simple indexing program