I tried this code from the 1st chapter:

from nltk.book import *

fdist1 = FreqDist(text1)
print fdist1

and I received this message: NameError: name 'FreqDist' is not defined

Can anyone explain why is it happens and how to fix this?
Thanks, in advance.