Sum

Added sum function.