refactoring: change code to use matriz of char