card classes done and tested