Add functions add, subtract, reduce and sum