write a simple repl