Refactored the stirling function to a class-based Function.