Add a sum to main.cpp