passed final test for add_card mathod