index code for Information Retrieval class