Project from chapter 4 of the book.