Implementation of "Logic Unit"