add creating section lines
add polygon class
small refactoring
add classes for point and segment