Vending Machine in Code