Implemented colorRectangle