Working on solving the median