Inheritance to composition and repeaters