An Economic Analysis of the Family