Added summ function