new class for the application logic