Updated the docstring.
done chapter 5 and 6.