s5 patterns and relationships