Chapter15 (v14) Pattern overlaps code