If you've used a vending machine lately, you've probably noticed that they're pretty high-tech now, but this invention was ahead of its time from the start.
Heron of Alexandria is said to have invented the first vending machine in the 1st century AD. So, how did this contraption work, and what did it dispense?