On the Theory of Implied Contracts