Checking code for coloring case