A demo on using promises in asynchronous code