Place the square in the xy-plane with vertices at (1,1), (-1,1), (-1,-1), and (1,-1), and label the edges 1, 2, 3, 4. Consider the action of the dihedral group G=D4 (of order 8) on the set X of all n4 possible colorings of the edges with n colors.