A written agency contract between a buyer and a real estate broker stipulating the broker will be paid a commission when the buyer purchases real estate.