A creditor agrees with his debtor and a third party to accept that third party as his debtor. The contract is discharged by waiver.