create model and mapping