adding while example to git