Did segmentation and updated output of files, need to merge two parts together