Simple programe; calculates the factorial of a given number