Implemented ALU (chapter 2)