Added Sol for median