Solution to Information Retrieval practical