chapter 7: generating sentences
chapter 7 exercise 7-2: group by word frequency