Added method to return median of population