added while loop in loops section