Refactored numberCompilation