Need closure to capture method variable when defining method functions
Merge pull request #3 from stenington/needs-closure

Need closure to capture method variable when defining method functions.