The earliest known reference to a vending machine is in the work of Hero of Alexandria, an engineer and mathematician in first-century Roman Egypt. His machine accepted a coin and then dispensed wine2 or holy water.3 When the coin was deposited, it fell upon a pan attached to a lever. The lever opened a valve which let some wine flow out. The pan continued to tilt with the weight of the coin until it fell off, at which point a counterweight snapped the lever up and turned off the valve.
Neat
Shit we had wine2 back then and yet I’m still drinking wine1?
have you tried holy water9? afterward you spend the day feeling all

Just make sure you avoid Ice-9.
Don’t forget holy water :3
It’s just full of rocks, Jim