added Promise loop example