entering numbers now generates n x m grid of caps