Refactoring the code to MCV patrn, read and write to file default.ini