Not to be picky (ok, to be picky), but buying a gallon of milk with cash, or buying a coke from a machine, are not contracts. A contract must contain at least one promise. Neither of these purchases contain a promise of future action.
"The Avis WIZARD decides if you get to drive a car. Your head won't touch the pillow of a Sheraton unless their computer says it's okay." -- Arthur Miller