A simple sum function