Add logic.php and demo.php