move credit card instantiation outside of function in case it needs to be reused