solved complete inverted index lab