Call the sum function correctly