Scala Code Generator