Mod color_observer script to class