While loop assignment