Transition Class and example