add main, normilize and summ functions