added new dependency, refactoring and processed method addCat