added function for sum of values to tools.