Object function intersect() working