Find the number of ways of coloring the sides of a square with four different colors, so that no two adajcent sides have the same color.