introducing the StreamEditor class