Nice use of sets and intersections.