add hue-saturation function in chap 3