added a `Promise` reference implementation.