Added programming exercise in chapter 3