Added sample sample8 containing usages of while statements.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>