added reject & promise example