Which of the following is an example of the use of money as a medium of exchange?
A. ABC Investments Inc. enters in its account books that it owes Nallai $20 for his last month's investment.
B. Jane buys a sandwich using cash.
C. Sam purchases a government bond to save for retirement.
D. Smith buys gold coins as a hedge against inflation.