Create polygon class

Create the polygon class.