Several contracts relating to the same matters between the same parties and made as parts of substantially one transaction are to be taken together.