Added Median sol