All of the work for Part 2 of the tutorial.