Contracts and Endogenous Inequality ∗