first draft of the controller part of the adder