Added MedianModel class