Created a factorial routine.
I added the comment needed.