add chapter 3 of scala