split card class off of parse.rb