changed color class to struct