Added example for functional variable scope