how to calculate the factorial of a number using pl