a ruby program that generates word squares