Added inGroupsOf and withProps methods to Model