The object of a contract is the thing which it is agreed, on the part of the party receiving the consideration, to do or not to do.
(Enacted 1872.)