A Model for Managing Collections of Patterns