add other example to promises variant and factory for promises