
public class BiasFinder {
	private BiasFinder(){
		
	}

}

@@ -1,11 +1,36 @@
-%0Apublic
+import java.util.HashSet;%0A%0Afinal
  cla
@@ -49,17 +49,21 @@
 r %7B%0A
-%09
+%0A    
 private 
 Bias
@@ -62,26 +62,903 @@
 ate 
-BiasFinder()%7B%0A%09%09%0A%09
+static final BiasFinder INSTANCE = new BiasFinder();%0A    private HashSet%3CString%3E conservativeSources = new HashSet%3C%3E();%0A    private HashSet%3CString%3E liberalSources = new HashSet%3C%3E();%0A%0A    enum Bias %7BCONSERVATIVE, LIBERAL, UNKNOWN%7D%0A%0A    private BiasFinder() %7B%0A        conservativeSources.add(%22Fox%22);%0A        conservativeSources.add(%22Blaze%22);%0A        conservativeSources.add(%22Breitbart%22);%0A%0A        liberalSources.add(%22NY%22);%0A        liberalSources.add(%22WSJ%22);%0A        liberalSources.add(%22CNN%22);%0A        liberalSources.add(%22MSNBC%22);%0A    %7D%0A%0A    static BiasFinder getInstance() %7B%0A        return INSTANCE;%0A    %7D%0A%0A    Bias findBias(String source) %7B%0A        if(conservativeSources.contains(source)) %7B%0A            return Bias.CONSERVATIVE;%0A        %7D%0A        else if(liberalSources.contains(source)) %7B%0A            return Bias.LIBERAL;%0A        %7D%0A        else %7B%0A            return Bias.UNKNOWN;%0A        %7D%0A    
 %7D%0A%0A%7D

Add BiasFinder singleton