Moving example to function.