Updated card functions - now card object