Scala code library