added pole and line baseclass. TODO: refactor the line class