Let io handle both the input and output.
Rename do_loop to repl.
Start repl with the default environment.
Update example according to the new repl.
Update tests to work with the new repl.