Moved implemented of card to cpp file.

Signed-off-by: retep998 <retep998@verizon.net>