Scala notes and code