Added #3 function median()