Update logicalgates.php