The Architecture of Patterns