add create method for model