implement & test Mean type