Add composite pattern.