I would have thought it would be more scalable and maintainable to simply enter the number of rows/cols required and have the labels generated automatically, is there a particular reason why labels should be manually entered in the code?