stop using side effects via closure; use instance props instead.
Merge pull request #2 from vaughan99/master

stop using side effects via closure; use instance props instead.