Completed repl example.