implemented simple REPL