make FlowStepHistory a sealed trait so it can be extended in the future