Add async instantiation sample with factory