Implement multiline REPL