extract class for card hash generation