Updated sample.php