started working on the repl
trying a different implementation of the test of the layering algorithm