another exercise of color conversion and histogram