The vending machine was invented in the 1st century. In exchange for a coin, it dispensed holy water.