Create polygon class