fix 'new'/'inherit' definition as a function
Merge pull request #14 from idupree/master

fix 'new'/'inherit' definition as a function