Logic Gates and the Ripple Carry Adder