replace all scala examples in cookbook package, second try