refactoring final app.class.php