Parties to contracts commonly believe that their obligations are restricted to those set out in their contract. However, the law also obliges them to perform the contract in accordance with the law and having regard to custom and the nature of the transaction involved.