Made a class out of the intersect operation