Added arithmetic.rb for Term class