Implemented Rectangle.