inverse index lab task 4