Inheritance support
Merge pull request #13 from zhengjia/master

Support inheritance