Sample Numbers, refactored to use message function processor as parameter at createProcessor