While Do Sum and Average