Updated Final Code Segmentation