There are six methods of discharge of contract: by performance, by agreement, by subsequent impossibility, by lapse of time, by operation of law, and by breach of contract.