Fix class inheritance
Merge pull request #88 from cbdr/fix-model-inheritance

Fix class inheritance