starting cleanup
cleanup

used more object-oriented methods
cleanup and fixed factorial

more object oriented approach and used the correct math for factorial.
Used to be an arithmetic sequence
cleanup
cleanup