new style class for FSM class as seen from DP's code and from http://bit.ly/18q66PF