added sum and prod arithemetic functions