Inheritance, fixes #6, fixes #9