added Finite State Machine to classification modules