Implemented total in CategoryHandler