Added implementation of interesection