create model and controller