Adds the Rect class.