added class to modularize app using better OOP design
Complete refactoring of the project, spliting it into classes