Refactored Phone Dialpad solution (more compact)