made class inheritance use inherits property, fixes #6