Fleshed out rough pseudocode to more closely reflect the expected operation in factorial.txt