An introduction to the law of contracts