A very simple demo of dependency resolution using promises