At the end of class, there was some confusion about why we needed both the labels on the edges and the names of the next states, since both seemed to be conveying the same information. For those of you new to state machines, here's another example state machine that tracks how much money someone has dropped into a vending machine towards a soda (assume you start at the state named 0). Note that in this case the labels and state names convey different information, so we would need both to be able to move around the diagram.

soda machine diagram