package com.thinkabstract.exercise.news.api.service;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

public class NewsFeedServiceFactory {

  private static final String BASE_NEWS_FEED_URL =
      "https://ajax.googleapis.com/ajax/services/feed/";

  public static NewsFeedService createService() {
    Retrofit retrofit = new Retrofit.Builder().baseUrl(BASE_NEWS_FEED_URL)
        .addConverterFactory(GsonConverterFactory.create())
        .build();

    return retrofit.create(NewsFeedService.class);
  }
}

@@ -47,16 +47,92 @@
 rvice;%0A%0A
+import okhttp3.OkHttpClient;%0Aimport okhttp3.logging.HttpLoggingInterceptor;%0A
 import r
@@ -538,16 +538,47 @@
 eate())%0A
+        .client(buildClient())%0A
         
@@ -642,11 +642,388 @@
 ss);%0A  %7D
+%0A%0A  private static OkHttpClient buildClient() %7B%0A    return new OkHttpClient.Builder().addInterceptor(buildHttpLoggingInterceptor()).build();%0A  %7D%0A%0A  private static HttpLoggingInterceptor buildHttpLoggingInterceptor() %7B%0A    HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();%0A    interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);%0A    return interceptor;%0A  %7D
 %0A%7D%0A

Add client to retrofit service builder