Convert from Java to Scala

Scala is the hotness now. We must embrace