added avg and sum()