Create private method for creating model