add equals anda hasnCode to Rect