modified vending machine code