initial commit of model code