Scala convert Sweep 3