Separating example to index.php