Bob loaned me $500. Our contract relating to that loan requires me to repay the loan in one year and to pay 5% interest.
At the end of one year, I don't have $500 to pay Bob. I offer to give Bob my bicycle in discharge of my obligations instead of paying the $500.
Bob accepts.
The second agreement Bob and I entered is an accord and satisfaction.