Thank you all for posts, I'll add another code in the near future. Last night of my time I was no longer in the forum, but now I go to bury the guinea pigs of my children, that died in the evening. I'm pleased with your interest in this program, which shows how many ways one thing can do and their differences in speed. My N - polygon I wrote for the use I will show in the next program.