Simple vending machine for a class