Create a format function for Card instead of print_card