- refactoring
 - chars counting implemented