Added testing and implemented class Card