add polygon class