Adapted chapter 1 to the new NLTK