Chapter 2 of tutorial project.