The first homework of CSE 260. A Simulation of Vending Machine.