worked on card class