Using groupBy in wordOccurances, as required by evaluator. My head hurts