simple question aubout inheritance learning