Updated the While example code.