Creating an index for a simple information retrieval system