Programs from chapter 19