begin implementation of arithmetic/logic code