Scala book examples