Implemented the MultinomialTransition class, no testing.