how to create model for Data