Made the inner classes State and Transition static