Fixed the problem when the departmen have the class type A,B
change history_counter to common counter.
and add option printer
Struction Rebuilt.