integrated ALU from lab2