Homework at SSATR. A simple state
machine simulator for the turnstile machine.
More info about it at:http://en.wikipedia.org/wiki/Finite-state_machine