Update credit_card.rb

More OO solution to problem maybe help you to improve your skills :smile: