[examples] This is a much better use of bind.

Rather than binding outside of the function each time, bind within it
so that you can keep multiple variables in scope.

Signed-off-by: Ricky Elrod <ricky@elrod.me>