Port SimpleIntegerModel to Scala