added while example