Refactored number method