I fixed the factorial to check for negative numbers.