create model structure