Refactor: add digits map