added segment.cpp