marriage is a kind of contract