Wrote the median function