chapter 1, 2 almost ok