Exercise "Calculating the median "