Embedded Systems Lecture Example Code for a Vending Machine in the week of  Finite State Machine lectures