a program that prints checkerboards the hard way