class Harmonic extends Mean { double calcMean(double[] nums){ double agg = 0; // agg stands for aggregate for(int i = 0; i < nums.length; i++) agg += (1/nums[i]); return nums.length/agg; } }