Complete exercises for chapter 1