A lot of the problems that face us, and the opportunities that present themselves, are defined not by our own choices or even the specific place or government we're living under, but by the particular epoch of human events that our lives happen to coincide with. The Industrial Revolution, for example, presented opportunities for certain kinds of business success it made some people very rich while others were exploited. If you'd known that was the name of your era, it would have given you a clue about what kinds of events to prepare for.
The coin would fall inside and land on a lever. Under the weight of the coin, the lever went down, pulling a string. The string was attached to a plug that opened a valve, allowing the container to dispense holy water. So Hero's invention was not a snack machine - it was designed to prevent people from taking more than their fair share of holy water, which had apparently been a problem in temples up to that point.