Add create method for model.