more segmentation and commenting of ex05