Contract is that species of agreement whereby a legal obligation is constituted and defined between the parties to it.