correction: no self in this function call
wordcount example
inverted index assignment