final solutions for chapter 1