Implemented a repl