group of contracts doctrine