Completed the factorial finding application