Add composite pattern example