Implemenmted summation and multiplication on range