Added index.php and logic.php

Added index.php and logic.php