finished code example for section 12, chapter6, in directory "TryPolyLine" and "TryPolyLine2"