A state machine which controls an elevator in a three story building