add intersection and polygon classes