Created main REPL loop