factorialFunction