solutions for chapter 1