add global assignment support
fix issue-3
Merge pull request #5 from xfgong/issue-3

fix issue 3