Updated with correct mean, median values and re-arranged the output