REPL implementation for basic arithmetics