preparing classes for intersection computation