refactored the application to a class