Sorting shapes into a Venn diagram