Adding api example for composition