added demo.php and logic.pgp