Create main.php

work in progress