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?