class to pach