add REPL
format existing code to match changes