Update index2.php

Moved code from index.php to index2.php
Merge pull request #12 from Fvelasq/patch-9

Update index2.php