implemented vending machine skeleton