modeling scala