A coin is put into a vending machine and buttons on the machine are pressed.