constructor for Rect