Add rules for order of extends and content