implemented classes for color working