moved constructor def for Sequencer to be inside a closure to enable better scoping