added exercise to chapter 3