ADVERTISEMENT As if that wasn’t enough, he also invented a vending machine, as described in his book “Mechanics and Optics”; a coin was introduced via a slot on the top of the machine and a fixed amount of holy water was dispensed.