created application class with functions