add initial model code