Add example with composition definition