public double[] average_rating(){
    	int[] count = {0, 0};
    	double[] avg = {0, 0};
    	for(int i = 0; i < ratings1.length; i++){
    		if(ratings1[i] != 0){
    			count[0]++;
    			avg[0] += ratings1[i];
    		}
    	}
    	for(int i = 0; i < ratings2.length; i++){
    		if(ratings2[i] != 0){
    			count[1]++;
    			avg[1] += ratings2[i];
    		}
    	}
    	avg[0] = avg[0] / count[0];
    	avg[1] = avg[1] / count[1];
    	return avg;
    }