Port SimpleFloatModel into Scala