Patterns of contracts