updated factorial.py with feedback