combine classes into ColorBar class