a model of a vending machine