modified adder class