example promise with services and controllers