More chapter 5 sample code.