Hackbright Exercise 3 - Calculator REPL function