A sample function to calc the factorial of a number. It has only a number as parameter.