Scanning of numbers: implemented the test first