added while loop snippet

Was there a reason to change this prefix?