Examples from scala in action