sample code for a Vending Machine in embedded systems Finite State Machines lecture