temp refactor
src/lib with utilities (and Sequence)
progressed in refactoring so that it compiles