mod function

Return the model object