add chapter2 scala stuff