The third tutorial application from chapter 3 of the book