Simulating the arithmetic operation of adding