segmenting file to make easier to read for "While Loops" and "Do While Loops"