basic REPL implemented