print_results modified to output both mean and median.