Find the modal class and the group containing the median.