Defines a View class in view2.php
Successfully uses View object in index.php
Renamed the class file as view.php