factorial REPL fixed