Working on median, it looks good