Simple example on how to reject a promise