Create while_loop