Refactored fashcards.rb