BooleanLogic.cs Modified