Added promise style sample