Experimenting with an implementation of promises