Added a door as an example of a finite state machine