After corrections suggested by Per
understanding mean and median