doing exercises chapter 3