fix refactoring example's usage of static variable

sorry - let's try again....
Merge pull request #736 from PrplHaz4/patch-1

fix refactoring example's usage of static variable