repl now correctly prints multiple outputs