Solution for median_spec.rb (SC!)