Moved mean to the end
Added summ