Add `group` method for Model.