Variable renamings, moving code around in a better order to be explained in the book, and simplifying code.