polygon class run example