This is the perfect factorial function!