Fix typo
Add inherits utility function