adding a docstring and indentation declaration to loop-while