a basic vending machine that gives the output when the appropriate number of input tokens are given