committing cardTest.cpp for documentation