Add captured variable example