Social Order Through Contracts