chapter 3 almost ok