extract card class