create Card class, use File.each to loop input list