Static variable example

I've not added it to the README.md since not sure where it goes since this is not class-related.