updated model RectangleArea and added functional ColorPalette