Add new method to Palette class