polygon math, part 1