Moved Card class to separate file