Fix Compute the Average according to issue 1