Create logic.php