Wow that was really painful.  Intermixing REPL environments with your implementation code can lead to subtle bugs