@Override
    public boolean equals(Object obj)
    {
        if (!(obj instanceof Rectangle)) {
            return false;
        }
        
        Rectangle b = (Rectangle)obj;
        return b.x1 == x1 && b.y1 == y1 && b.x2 == x2 && b.y2 == y2;
    }