add example where while loop makes sense