Refactored Card record to its own namespace