Programs from chapter 04