Added ch06 segments.c