Inherit correct parent class