Trait inheritance mechanism