The Value of the Firm as a Nexus of Heterogeneous Contracts