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 goal of science is to build better mousetraps. The goal of nature is to build better mice.