Fixed examples (used old method of creating promise)