The Law and Economics of Marriage and Divorce: Marriage: the long-term contract