Add programming exercises from chapter 3.