add chapter 6('object') of scala