create Transition class