Add example for promise