LAB6 logic made