Discharge of contract and remedies - Basic principles of restitution and unjust enrichment in termination