Add firstReverse and firstFactorial functions