Working on Bratko chapter 2