s4 patterns and relationships