Add getTotal and requireClass to helper
Better tables management and cleanup using helper