Initial commit (Scala version)