Added sum function

Signed-off-by: Marius <UsYer@gmx.de>