number an integer arrays along with tests