refactoring putting formatter code into diferents files