P2- how segmentation works in os