Added polygon code chunk