Added promises support for hash example