The lesson from three vending machines.