Beginnings of model code