renaming add method in ChainOfResponsibility
fixed bug in TypeCategory constructor