add promise example code
add promise example code