great stuff, thanks for all the answers and assistance.
Lee, I had this problem with the first code you posted
Command: wg2
Enter number of columns: <4> : 3 bad argument type: fixnump: nil
so have used the second piece of code which works perfectly, thanks.
fixo, thanks a lot. That code is a lot more easily understood by me and is very helpful.
Regarding localization, would I need to make the program loop? Currently all I have done is remove the variables from the declaration.
Thanks again
Pad