model code updated with first steps