subclass friendly
subclass-friendly code improved, test added
Merge pull request #7 from cafe01/subclassfriendly

Subclass Friendly