#79 adjust arithmetic operations, use of Integer class and instanceof check