Use class for palette