Create app.class.php

Adding new centralized app file