Added promise and service factory example