refactoring to a REPL scratch area