Added methods to vending machine