adding polygon class