A $\Delta$-coloring $C$ of an undirected graph $G=(V, E)$ is an assignment labeling each vertex with a number, representing a color, from the set $\{1,2, \ldots, \Delta\} .$ An edge $(u, v)$ is improper if both $u$ and $v$ are assigned the same color. Let $I(C)$ be the number of improper edges of a coloring $C$. Design a Markov chain based on the Metropolis algorithm such that, in the stationary distribution, the probability of a coloring $C$ is proportional to $\lambda^{I(C)}$ for a given constant $\lambda>0$. Pairs of states of the chain are connected if they correspond to pairs of colorings that differ in just one vertex.