Moved Card class to own file