create CreditCard entity and controller refactoring