Prepare classes for cards