fixing type inheritence
codereview cleanup
addressing codereview
Merge pull request #68 from onefinestay/fix-inheritence

fixing type inheritence