Fixed transition to come first (before assigning weights), to conform to model used by Dr. Seppi's sample output.