working on modularizing the sequential sampling
modular sequential sampling completed and working